Fix calls to test-gcc-flag, to match previous changeset.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 14 Dec 2005 12:52:02 +0000 (12:52 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 14 Dec 2005 12:52:02 +0000 (12:52 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
xen/arch/x86/Rules.mk

index e73be57bbca98805e217e705a6f7bd21492d1f10..79670678b7da811367b3ca24974f58eb3d46808b 100644 (file)
@@ -21,9 +21,9 @@ endif
 CFLAGS  += -msoft-float
 
 # Disable PIE/SSP if GCC supports them. They can break us.
-CFLAGS  += $(call test-gcc-flag,-nopie)
-CFLAGS  += $(call test-gcc-flag,-fno-stack-protector)
-CFLAGS  += $(call test-gcc-flag,-fno-stack-protector-all)
+CFLAGS  += $(call test-gcc-flag,$(CC),-nopie)
+CFLAGS  += $(call test-gcc-flag,$(CC),-fno-stack-protector)
+CFLAGS  += $(call test-gcc-flag,$(CC),-fno-stack-protector-all)
 
 ifeq ($(TARGET_SUBARCH),x86_32)
 CFLAGS  += -m32 -march=i686